/*
Copyright 2014, KISSY v1.47
MIT Licensed
build time: Aug 28 13:17
*/
var KISSY=function(a){function e(a){var l={},e;for(e in h)(function(b,g){b[g]=function(c){return k.log(c,g,a)}})(l,e);return l}var k,j=0,h={debug:10,info:20,warn:30,error:40};k={__BUILD_TIME:"20140828131714",Env:{host:this},Config:{debug:"",fns:{}},version:"1.47",config:function(d,e){var h,b,g=this,c,f=k.Config,r=f.fns;k.isObject(d)?k.each(d,function(a,p){(c=r[p])?c.call(g,a):f[p]=a}):(h=r[d],e===a?b=h?h.call(g):f[d]:h?b=h.call(g,e):f[d]=e);return b},log:function(){return a},getLogger:function(a){return e(a)},
error:function(){},guid:function(a){return(a||"")+j++},Logger:{}};k.Logger.Level={DEBUG:"debug",INFO:"info",WARN:"warn",ERROR:"error"};return k}();
(function(a,e){function k(){}function j(g,i,c,f,b,l){if(!i||!g)return g;var q,o,t,n;i[d]=g;l.push(i);t=a.keys(i);n=t.length;for(q=0;q<n;q++)if(o=t[q],o!==d){var h=g,k=i,x=c,F=f,H=b,K=l;if(x||!(o in h)||H){var y=h[o],w=k[o];if(y===w)y===e&&(h[o]=y);else if(F&&(w=F.call(k,o,w)),H&&w&&(a.isArray(w)||a.isPlainObject(w)))w[d]?h[o]=w[d]:(k=y&&(a.isArray(y)||a.isPlainObject(y))?y:a.isArray(w)?[]:{},h[o]=k,j(k,w,x,F,m,K));else if(w!==e&&(x||!(o in h)))h[o]=w}}return g}function h(a,i){return"constructor"===
a?e:i}var d="__MIX_CIRCULAR",l=this,m=!0,b=Object,g=b.create,c=!{toString:1}.propertyIsEnumerable("toString"),f="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toString,toLocaleString,valueOf".split(",");(function(a,i){for(var g in i)a[g]=i[g]})(a,{stamp:function(g,i,c){var c=c||"__~ks_stamped",f=g[c];if(!f&&!i)try{f=g[c]=a.guid(c)}catch(b){f=e}return f},keys:b.keys||function(a){var i=[],g,b;for(g in a)a.hasOwnProperty(g)&&i.push(g);if(c)for(b=f.length-1;0<=b;b--)g=f[b],a.hasOwnProperty(g)&&
i.push(g);return i},mix:function(g,i,c,f,b){"object"===typeof c&&(f=c.whitelist,b=c.deep,c=c.overwrite);if(f&&"function"!==typeof f)var h=f,f=function(i,g){return a.inArray(i,h)?g:e};c===e&&(c=m);var q=[],o=0;for(j(g,i,c,f,b,q);i=q[o++];)delete i[d];return g},merge:function(g){var g=a.makeArray(arguments),i={},c,f=g.length;for(c=0;c<f;c++)a.mix(i,g[c]);return i},augment:function(g,i){var c=a.makeArray(arguments),f=c.length-2,b=1,d,q,o=c[f],t=c[f+1];c[1]=i;a.isArray(t)||(o=t,t=e,f++);"boolean"!==typeof o&&
(o=e,f++);for(;b<f;b++){q=c[b];if(d=q.prototype)q=a.mix({},d,!0,h);a.mix(g.prototype,q,o,t)}return g},extend:function(c,i,f,b){var d=i.prototype;d.constructor=i;g?i=g(d):(k.prototype=d,i=new k);i.constructor=c;c.prototype=a.mix(i,c.prototype);c.superclass=d;f&&a.mix(i,f);b&&a.mix(c,b);return c},namespace:function(){var g=a.makeArray(arguments),i=g.length,c=null,f,b,d,q=g[i-1]===m&&i--;for(f=0;f<i;f++){d=(""+g[f]).split(".");c=q?l:this;for(b=l[d[0]]===c?1:0;b<d.length;++b)c=c[d[b]]=c[d[b]]||{}}return c}})})(KISSY);
(function(a,e){var k=Array.prototype,j=k.indexOf,h=k.lastIndexOf,d=k.filter,l=k.every,m=k.some,b=k.map;a.mix(a,{each:function(g,c,f){if(g){var b,i,d=0;b=g&&g.length;i=b===e||"function"===a.type(g);f=f||null;if(i)for(i=a.keys(g);d<i.length&&!(b=i[d],!1===c.call(f,g[b],b,g));d++);else for(i=g[0];d<b&&!1!==c.call(f,i,d,g);i=g[++d]);}return g},indexOf:j?function(a,c){return j.call(c,a)}:function(a,c){for(var f=0,b=c.length;f<b;++f)if(c[f]===a)return f;return-1},lastIndexOf:h?function(a,c){return h.call(c,
a)}:function(a,c){for(var f=c.length-1;0<=f&&c[f]!==a;f--);return f},unique:function(g,c){var f=g.slice();c&&f.reverse();for(var b=0,i,d;b<f.length;){for(d=f[b];(i=a.lastIndexOf(d,f))!==b;)f.splice(i,1);b+=1}c&&f.reverse();return f},inArray:function(g,c){return-1<a.indexOf(g,c)},filter:d?function(a,c,f){return d.call(a,c,f||this)}:function(g,c,f){var b=[];a.each(g,function(a,g,d){c.call(f||this,a,g,d)&&b.push(a)});return b},map:b?function(a,c,f){return b.call(a,c,f||this)}:function(a,c,f){for(var b=
a.length,i=Array(b),d=0;d<b;d++){var e="string"===typeof a?a.charAt(d):a[d];if(e||d in a)i[d]=c.call(f||this,e,d,a)}return i},reduce:function(a,c,f){var b=a.length;if("function"!==typeof c)throw new TypeError("callback is not function!");if(0===b&&2===arguments.length)throw new TypeError("arguments invalid");var i=0,d;if(3<=arguments.length)d=f;else{do{if(i in a){d=a[i++];break}i+=1;if(i>=b)throw new TypeError;}while(1)}for(;i<b;)i in a&&(d=c.call(e,d,a[i],i,a)),i++;return d},every:l?function(a,c,
f){return l.call(a,c,f||this)}:function(a,c,f){for(var b=a&&a.length||0,i=0;i<b;i++)if(i in a&&!c.call(f,a[i],i,a))return!1;return!0},some:m?function(a,c,f){return m.call(a,c,f||this)}:function(a,c,f){for(var b=a&&a.length||0,i=0;i<b;i++)if(i in a&&c.call(f,a[i],i,a))return!0;return!1},makeArray:function(b){if(null==b)return[];if(a.isArray(b))return b;var c=typeof b.length,f=typeof b;if("number"!==c||b.alert||"string"===f||"function"===f&&!("item"in b&&"number"===c))return[b];for(var c=[],f=0,d=b.length;f<
d;f++)c[f]=b[f];return c}})})(KISSY);
(function(a,e){function k(a){var c=typeof a;return null==a||"object"!==c&&"function"!==c}function j(){if(b)return b;var c=d;a.each(l,function(a){c+=a+"|"});c=c.slice(0,-1);return b=RegExp(c,"g")}function h(){if(g)return g;var c=d;a.each(m,function(a){c+=a+"|"});c+="&#(\\d{1,5});";return g=RegExp(c,"g")}var d="",l={"&amp;":"&","&gt;":">","&lt;":"<","&#x60;":"`","&#x2F;":"/","&quot;":'"',"&#x27;":"'"},m={},b,g,c=/[\-#$\^*()+\[\]{}|\\,.?\s]/g;(function(){for(var a in l)m[l[a]]=a})();a.mix(a,{urlEncode:function(a){return encodeURIComponent(""+
a)},urlDecode:function(a){return decodeURIComponent(a.replace(/\+/g," "))},fromUnicode:function(a){return a.replace(/\\u([a-f\d]{4})/ig,function(a,i){return String.fromCharCode(parseInt(i,16))})},escapeHtml:function(a){return(a+"").replace(j(),function(a){return m[a]})},escapeRegExp:function(a){return a.replace(c,"\\$&")},unEscapeHtml:function(a){return a.replace(h(),function(a,i){return l[a]||String.fromCharCode(+i)})},param:function(c,b,i,g){b=b||"&";i=i||"=";g===e&&(g=!0);var h=[],l,j,q,o,t,n=
a.urlEncode;for(l in c)if(t=c[l],l=n(l),k(t))h.push(l),t!==e&&h.push(i,n(t+d)),h.push(b);else if(a.isArray(t)&&t.length){j=0;for(o=t.length;j<o;++j)q=t[j],k(q)&&(h.push(l,g?n("[]"):d),q!==e&&h.push(i,n(q+d)),h.push(b))}h.pop();return h.join(d)},unparam:function(c,b,i){if("string"!==typeof c||!(c=a.trim(c)))return{};for(var i=i||"=",d={},g,h=a.urlDecode,c=c.split(b||"&"),l=0,q=c.length;l<q;++l){g=c[l].indexOf(i);if(-1===g)b=h(c[l]),g=e;else{b=h(c[l].substring(0,g));g=c[l].substring(g+1);try{g=h(g)}catch(o){}a.endsWith(b,
"[]")&&(b=b.substring(0,b.length-2))}b in d?a.isArray(d[b])?d[b].push(g):d[b]=[d[b],g]:d[b]=g}return d}});a.escapeHTML=a.escapeHtml;a.unEscapeHTML=a.unEscapeHtml})(KISSY);
(function(a){function e(a,e,h){function d(){}var l=[].slice,m=l.call(arguments,3),b=function(){var b=l.call(arguments);return e.apply(this instanceof d?this:h||this,a?b.concat(m):m.concat(b))};d.prototype=e.prototype;b.prototype=new d;return b}a.mix(a,{noop:function(){},bind:e(0,e,null,0),rbind:e(0,e,null,1),later:function(e,j,h,d,l){var j=j||0,m=e,b=a.makeArray(l),g;"string"===typeof e&&(m=d[e]);e=function(){m.apply(d,b)};g=h?setInterval(e,j):setTimeout(e,j);return{id:g,interval:h,cancel:function(){this.interval?
clearInterval(g):clearTimeout(g)}}},throttle:function(e,j,h){j=j||150;if(-1===j)return function(){e.apply(h||this,arguments)};var d=a.now();return function(){var l=a.now();l-d>j&&(d=l,e.apply(h||this,arguments))}},buffer:function(e,j,h){function d(){d.stop();l=a.later(e,j,0,h||this,arguments)}j=j||150;if(-1===j)return function(){e.apply(h||this,arguments)};var l=null;d.stop=function(){l&&(l.cancel(),l=0)};return d}})})(KISSY);
(function(a,e){function k(b,g,c){var f=b,e,i,h,j;if(!b)return f;if(b[l])return c[b[l]].destination;if("object"===typeof b){j=b.constructor;if(a.inArray(j,[Boolean,String,Number,Date,RegExp]))f=new j(b.valueOf());else if(e=a.isArray(b))f=g?a.filter(b,g):b.concat();else if(i=a.isPlainObject(b))f={};b[l]=j=a.guid("c");c[j]={destination:f,input:b}}if(e)for(b=0;b<f.length;b++)f[b]=k(f[b],g,c);else if(i)for(h in b)if(h!==l&&(!g||g.call(b,b[h],h,b)!==d))f[h]=k(b[h],g,c);return f}function j(b,d,c,f){if(b[m]===
d&&d[m]===b)return h;b[m]=d;d[m]=b;var l=function(a,c){return null!==a&&a!==e&&a[c]!==e},i;for(i in d)!l(b,i)&&l(d,i)&&c.push("expected has key "+i+'", but missing from actual.');for(i in b)!l(d,i)&&l(b,i)&&c.push('expected missing key "'+i+'", but present in actual.');for(i in d)i!==m&&(a.equals(b[i],d[i],c,f)||f.push('"'+i+'" was "'+(d[i]?d[i].toString():d[i])+'" in expected, but was "'+(b[i]?b[i].toString():b[i])+'" in actual.'));a.isArray(b)&&a.isArray(d)&&b.length!==d.length&&f.push("arrays were not the same length");
delete b[m];delete d[m];return 0===c.length&&0===f.length}var h=!0,d=!1,l="__~ks_cloned",m="__~ks_compared";a.mix(a,{equals:function(a,d,c,f){c=c||[];f=f||[];return a===d?h:a===e||null===a||d===e||null===d?null==a&&null==d:a instanceof Date&&d instanceof Date?a.getTime()===d.getTime():"string"===typeof a&&"string"===typeof d||"number"===typeof a&&"number"===typeof d?a===d:"object"===typeof a&&"object"===typeof d?j(a,d,c,f):a===d},clone:function(d,g){var c={},f=k(d,g,c);a.each(c,function(a){a=a.input;
if(a[l])try{delete a[l]}catch(c){a[l]=e}});c=null;return f},now:Date.now||function(){return+new Date}})})(KISSY);
(function(a,e){var k=/^[\s\xa0]+|[\s\xa0]+$/g,j=String.prototype.trim,h=/\\?\{([^{}]+)\}/g;a.mix(a,{trim:j?function(a){return null==a?"":j.call(a)}:function(a){return null==a?"":(a+"").replace(k,"")},substitute:function(a,l,j){return"string"!==typeof a||!l?a:a.replace(j||h,function(a,d){return"\\"===a.charAt(0)?a.slice(1):l[d]===e?"":l[d]})},ucfirst:function(a){a+="";return a.charAt(0).toUpperCase()+a.substring(1)},startsWith:function(a,e){return 0===a.lastIndexOf(e,0)},endsWith:function(a,e){var h=
a.length-e.length;return 0<=h&&a.indexOf(e,h)===h}})})(KISSY);
(function(a,e){var k={},j=Object.prototype,h=j.toString;a.mix(a,{type:function(a){return null==a?""+a:k[h.call(a)]||"object"},isNull:function(a){return null===a},isUndefined:function(a){return a===e},isEmptyObject:function(a){for(var h in a)if(h!==e)return!1;return!0},isPlainObject:function(d){if(!d||"object"!==a.type(d)||d.nodeType||d.window==d)return!1;var h,k;try{if((k=d.constructor)&&!j.hasOwnProperty.call(d,"constructor")&&!j.hasOwnProperty.call(k.prototype,"isPrototypeOf"))return!1}catch(b){return!1}for(h in d);
return h===e||j.hasOwnProperty.call(d,h)}});a.each("Boolean,Number,String,Function,Date,RegExp,Object,Array".split(","),function(d,h){k["[object "+d+"]"]=h=d.toLowerCase();a["is"+d]=function(d){return a.type(d)===h}});a.isArray=Array.isArray||a.isArray})(KISSY);
(function(a){function e(){for(var a=0,b;b=k[a++];)try{b()}catch(d){setTimeout(function(){throw d;},0)}1<a&&(k=[]);j=0}var k=[],j=0;a.setImmediate=function(a){k.push(a);j||(j=1,h())};var h;if("function"===typeof setImmediate)h=function(){setImmediate(e)};else if("undefined"!==typeof process&&"function"===typeof process.nextTick)h=function(){process.nextTick(e)};else if("undefined"!==typeof MessageChannel){var d=new MessageChannel;d.port1.onmessage=function(){h=l;d.port1.onmessage=e;e()};var l=function(){d.port2.postMessage(0)};
h=function(){setTimeout(e,0);l()}}else h=function(){setTimeout(e,0)}})(KISSY);
(function(a){function e(a,d){for(var e=0,j=a.length-1,b=[],g;0<=j;j--)g=a[j],"."!==g&&(".."===g?e++:e?e--:b[b.length]=g);if(d)for(;e--;e)b[b.length]="..";return b=b.reverse()}var k=/^(\/?)([\s\S]+\/(?!$)|\/)?((?:\.{1,2}$|[\s\S]+?)?(\.[^.\/]*)?)$/,j=a.Path={resolve:function(){var h="",d,l=arguments,j,b=0;for(d=l.length-1;0<=d&&!b;d--)j=l[d],"string"===typeof j&&j&&(h=j+"/"+h,b="/"===j.charAt(0));h=e(a.filter(h.split("/"),function(a){return!!a}),!b).join("/");return(b?"/":"")+h||"."},normalize:function(h){var d=
"/"===h.charAt(0),j="/"===h.slice(-1),h=e(a.filter(h.split("/"),function(a){return!!a}),!d).join("/");!h&&!d&&(h=".");h&&j&&(h+="/");return(d?"/":"")+h},join:function(){var e=a.makeArray(arguments);return j.normalize(a.filter(e,function(a){return a&&"string"===typeof a}).join("/"))},relative:function(e,d){var e=j.normalize(e),d=j.normalize(d),l=a.filter(e.split("/"),function(a){return!!a}),k=[],b,g,c=a.filter(d.split("/"),function(a){return!!a});g=Math.min(l.length,c.length);for(b=0;b<g&&l[b]===c[b];b++);
for(g=b;b<l.length;)k.push(".."),b++;k=k.concat(c.slice(g));return k=k.join("/")},basename:function(a,d){var e;e=(a.match(k)||[])[3]||"";d&&e&&e.slice(-1*d.length)===d&&(e=e.slice(0,-1*d.length));return e},dirname:function(a){var d=a.match(k)||[],a=d[1]||"",d=d[2]||"";if(!a&&!d)return".";d&&(d=d.substring(0,d.length-1));return a+d},extname:function(a){return(a.match(k)||[])[4]||""}}})(KISSY);
(function(a,e){function k(c){c._queryMap||(c._queryMap=a.unparam(c._query))}function j(a){this._query=a||""}function h(a,c){return encodeURI(a).replace(c,function(a){a=a.charCodeAt(0).toString(16);return"%"+(1===a.length?"0"+a:a)})}function d(c){if(c instanceof d)return c.clone();var b=this;a.mix(b,{scheme:"",userInfo:"",hostname:"",port:"",path:"",query:"",fragment:""});c=d.getComponents(c);a.each(c,function(c,i){c=c||"";if("query"===i)b.query=new j(c);else{try{c=a.urlDecode(c)}catch(d){}b[i]=c}});
return b}var l=/[#\/\?@]/g,m=/[#\?]/g,b=/[#@]/g,g=/#/g,c=RegExp("^(?:([\\w\\d+.-]+):)?(?://(?:([^/?#@]*)@)?([\\w\\d\\-\\u0100-\\uffff.+%]*|\\[[^\\]]+\\])(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),f=a.Path,r={scheme:1,userInfo:2,hostname:3,port:4,path:5,query:6,fragment:7};j.prototype={constructor:j,clone:function(){return new j(this.toString())},reset:function(a){this._query=a||"";this._queryMap=null;return this},count:function(){var c=0,b,d;k(this);b=this._queryMap;for(d in b)a.isArray(b[d])?
c+=b[d].length:c++;return c},has:function(c){var b;k(this);b=this._queryMap;return c?c in b:!a.isEmptyObject(b)},get:function(a){var c;k(this);c=this._queryMap;return a?c[a]:c},keys:function(){k(this);return a.keys(this._queryMap)},set:function(c,b){var d;k(this);d=this._queryMap;"string"===typeof c?this._queryMap[c]=b:(c instanceof j&&(c=c.get()),a.each(c,function(a,c){d[c]=a}));return this},remove:function(a){k(this);a?delete this._queryMap[a]:this._queryMap={};return this},add:function(a,c){var b,
d;if("string"===typeof a)k(this),b=this._queryMap,d=b[a],d=d===e?c:[].concat(d).concat(c),b[a]=d;else for(b in a instanceof j&&(a=a.get()),a)this.add(b,a[b]);return this},toString:function(c){k(this);return a.param(this._queryMap,e,e,c)}};d.prototype={constructor:d,clone:function(){var c=new d,b=this;a.each(r,function(a,d){c[d]=b[d]});c.query=c.query.clone();return c},resolve:function(c){"string"===typeof c&&(c=new d(c));var b=0,g,e=this.clone();a.each("scheme,userInfo,hostname,port,path,query,fragment".split(","),
function(d){if(d==="path")if(b)e[d]=c[d];else{if(d=c.path){b=1;if(!a.startsWith(d,"/"))if(e.hostname&&!e.path)d="/"+d;else if(e.path){g=e.path.lastIndexOf("/");g!==-1&&(d=e.path.slice(0,g+1)+d)}e.path=f.normalize(d)}}else if(d==="query"){if(b||c.query.toString()){e.query=c.query.clone();b=1}}else if(b||c[d]){e[d]=c[d];b=1}});return e},getScheme:function(){return this.scheme},setScheme:function(a){this.scheme=a;return this},getHostname:function(){return this.hostname},setHostname:function(a){this.hostname=
a;return this},setUserInfo:function(a){this.userInfo=a;return this},getUserInfo:function(){return this.userInfo},setPort:function(a){this.port=a;return this},getPort:function(){return this.port},setPath:function(a){this.path=a;return this},getPath:function(){return this.path},setQuery:function(c){"string"===typeof c&&(a.startsWith(c,"?")&&(c=c.slice(1)),c=new j(h(c,b)));this.query=c;return this},getQuery:function(){return this.query},getFragment:function(){return this.fragment},setFragment:function(c){a.startsWith(c,
"#")&&(c=c.slice(1));this.fragment=c;return this},isSameOriginAs:function(a){return this.hostname.toLowerCase()===a.hostname.toLowerCase()&&this.scheme.toLowerCase()===a.scheme.toLowerCase()&&this.port.toLowerCase()===a.port.toLowerCase()},toString:function(c){var b=[],d,e;if(d=this.scheme)b.push(h(d,l)),b.push(":");if(d=this.hostname){b.push("//");if(e=this.userInfo)b.push(h(e,l)),b.push("@");b.push(encodeURIComponent(d));if(e=this.port)b.push(":"),b.push(e)}if(e=this.path)d&&!a.startsWith(e,"/")&&
(e="/"+e),e=f.normalize(e),b.push(h(e,m));if(c=this.query.toString.call(this.query,c))b.push("?"),b.push(c);if(c=this.fragment)b.push("#"),b.push(h(c,g));return b.join("")}};d.Query=j;d.getComponents=function(b){var d=(b||"").match(c)||[],e={};a.each(r,function(a,c){e[c]=d[a]});return e};a.Uri=d})(KISSY);
(function(a,e){function k(a){var c=0;return parseFloat(a.replace(/\./g,function(){return 0===c++?".":""}))}function j(a,c){var b;c.trident=0.1;if((b=a.match(/Trident\/([\d.]*)/))&&b[1])c.trident=k(b[1]);c.core="trident"}function h(a){var c,b;return(c=a.match(/MSIE ([^;]*)|Trident.*; rv(?:\s|:)?([0-9.]+)/))&&(b=c[1]||c[2])?k(b):0}function d(a){var c,b="",d="",f,g=[6,9],q,o=m&&m.createElement("div"),t=[],n={webkit:e,trident:e,gecko:e,presto:e,chrome:e,safari:e,firefox:e,ie:e,ieMode:e,opera:e,mobile:e,
core:e,shell:e,phantomjs:e,os:e,ipad:e,iphone:e,ipod:e,ios:e,android:e,nodejs:e};o&&o.getElementsByTagName&&(o.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",""),t=o.getElementsByTagName("s"));if(0<t.length){j(a,n);f=g[0];for(g=g[1];f<=g;f++)if(o.innerHTML="<\!--[if IE {{version}}]><s></s><![endif]--\>".replace("{{version}}",f),0<t.length){n[d="ie"]=f;break}if(!n.ie&&(q=h(a)))n[d="ie"]=q}else if((f=a.match(/AppleWebKit\/([\d.]*)/))&&f[1]){n[b="webkit"]=k(f[1]);if((f=
a.match(/OPR\/(\d+\.\d+)/))&&f[1])n[d="opera"]=k(f[1]);else if((f=a.match(/Chrome\/([\d.]*)/))&&f[1])n[d="chrome"]=k(f[1]);else if((f=a.match(/\/([\d.]*) Safari/))&&f[1])n[d="safari"]=k(f[1]);if(/ Mobile\//.test(a)&&a.match(/iPad|iPod|iPhone/)){n.mobile="apple";if((f=a.match(/OS ([^\s]*)/))&&f[1])n.ios=k(f[1].replace("_","."));c="ios";if((f=a.match(/iPad|iPod|iPhone/))&&f[0])n[f[0].toLowerCase()]=n.ios}else if(/ Android/i.test(a)){if(/Mobile/.test(a)&&(c=n.mobile="android"),(f=a.match(/Android ([^\s]*);/))&&
f[1])n.android=k(f[1])}else if(f=a.match(/NokiaN[^\/]*|Android \d\.\d|webOS\/\d\.\d/))n.mobile=f[0].toLowerCase();if((f=a.match(/PhantomJS\/([^\s]*)/))&&f[1])n.phantomjs=k(f[1])}else if((f=a.match(/Presto\/([\d.]*)/))&&f[1]){if(n[b="presto"]=k(f[1]),(f=a.match(/Opera\/([\d.]*)/))&&f[1]){n[d="opera"]=k(f[1]);if((f=a.match(/Opera\/.* Version\/([\d.]*)/))&&f[1])n[d]=k(f[1]);if((f=a.match(/Opera Mini[^;]*/))&&f)n.mobile=f[0].toLowerCase();else if((f=a.match(/Opera Mobi[^;]*/))&&f)n.mobile=f[0]}}else if(q=
h(a))n[d="ie"]=q,j(a,n);else if(f=a.match(/Gecko/)){n[b="gecko"]=0.1;if((f=a.match(/rv:([\d.]*)/))&&f[1])n[b]=k(f[1]),/Mobile|Tablet/.test(a)&&(n.mobile="firefox");if((f=a.match(/Firefox\/([\d.]*)/))&&f[1])n[d="firefox"]=k(f[1])}c||(/windows|win32/i.test(a)?c="windows":/macintosh|mac_powerpc/i.test(a)?c="macintosh":/linux/i.test(a)?c="linux":/rhino/i.test(a)&&(c="rhino"));n.os=c;n.core=n.core||b;n.shell=d;n.ieMode=n.ie&&m.documentMode||n.ie;return n}var l=a.Env.host,m=l.document,l=l.navigator,b=KISSY.UA=
d(l&&l.userAgent||"");if("object"===typeof process){var g,c;if((g=process.versions)&&(c=g.node))b.os=process.platform,b.nodejs=k(c)}b.getDescriptorFromUserAgent=d;g="webkit,trident,gecko,presto,chrome,safari,firefox,ie,opera".split(",");c=m&&m.documentElement;var f="";c&&(a.each(g,function(a){var c=b[a];c&&(f+=" ks-"+a+(parseInt(c)+""),f+=" ks-"+a)}),a.trim(f)&&(c.className=a.trim(c.className+f)))})(KISSY);
(function(a,e){function k(a){if(x[a])return x[a];if(!u||a in u)x[a]={name:a,prefix:""};else{for(var c=a.charAt(0).toUpperCase()+a.slice(1),b,f=d.length;f--;)b=d[f]+c,b in u&&(x[a]={name:b,prefix:d[f]});x[a]=x[a]||{name:a,prefix:!1}}return x[a]}var j=a.Env.host,h=a.UA,d=["","Webkit","Moz","O","ms"],l=j.document||{},m,b,g,c,f,r,i,p=l.documentElement,u,v=!0,s=!1,q="ontouchstart"in l&&!h.phantomjs,o=h.ieMode;if(p&&(p.querySelector&&8!==o&&(s=!0),u=p.style,a.each(d,function(a){var b=a?a+"Transition":"transition",
d=a?a+"Transform":"transform";f===e&&b in u&&(f=a,g=b);r===e&&d in u&&(r=a,c=d)}),v="classList"in p,h=j.navigator||{},m="msPointerEnabled"in h,b="pointerEnabled"in h,c))try{var t=l.createElement("p");p.insertBefore(t,p.firstChild);t.style[c]="translate3d(1px,1px,1px)";var n=j.getComputedStyle(t),E=n.getPropertyValue(c)||n[c];p.removeChild(t);i=E!==e&&0<E.length&&"none"!==E}catch(L){i=!0}var x={};a.Features={isMsPointerSupported:function(){return m},isPointerSupported:function(){return b},isTouchEventSupported:function(){return q},
isTouchGestureSupported:function(){return q||b||m},isDeviceMotionSupported:function(){return!!j.DeviceMotionEvent},isHashChangeSupported:function(){return"onhashchange"in j&&(!o||7<o)},isTransitionSupported:function(){return f!==e},isTransformSupported:function(){return r!==e},isTransform3dSupported:function(){return i},isClassListSupported:function(){return v},isQuerySelectorSupported:function(){return!a.config("dom/selector")&&s},isIELessThan:function(a){return!!(o&&o<a)},getTransitionPrefix:function(){return f},
getTransformPrefix:function(){return r},getTransitionProperty:function(){return g},getTransformProperty:function(){return c},getVendorCssPropPrefix:function(a){return k(a).prefix},getVendorCssPropName:function(a){return k(a).name}}})(KISSY);(function(a){(a.Loader={}).Status={ERROR:-1,INIT:0,LOADING:1,LOADED:2,READY_TO_ATTACH:3,ATTACHING:4,ATTACHED:5}})(KISSY);
(function(a){function e(a){if("string"===typeof a)return k(a);for(var c=[],b=0,d=a.length;b<d;b++)c[b]=k(a[b]);return c}function k(c){"/"===c.charAt(c.length-1)&&(c+="index");a.endsWith(c,".js")&&(c=c.slice(0,-3));return c}function j(c,b){var d=b.indexOf("!");if(-1!==d){var f=b.substring(0,d),b=b.substring(d+1);a.use(f,{sync:!0,success:function(a,d){d.alias&&(b=d.alias(c,b,f))}})}return b}var h=a.Loader,d=a.Path,l=a.Env.host,m=a.startsWith,b=h.Status,g=b.ATTACHED,c=b.READY_TO_ATTACH,f=b.LOADED,r=
b.ATTACHING,i=b.ERROR,p=h.Utils={},u=l.document;a.mix(p,{docHead:function(){return u.getElementsByTagName("head")[0]||u.documentElement},normalDepModuleName:function(a,c){var b=0,f;if(!c)return c;if("string"===typeof c)return m(c,"../")||m(c,"./")?d.resolve(d.dirname(a),c):d.normalize(c);for(f=c.length;b<f;b++)c[b]=p.normalDepModuleName(a,c[b]);return c},createModulesInfo:function(c,b){a.each(b,function(a){p.createModuleInfo(c,a)})},createModuleInfo:function(c,b,d){var b=k(b),f=c.Env.mods,e=f[b];
return e?e:f[b]=e=new h.Module(a.mix({name:b,runtime:c},d))},getModules:function(c,b){var d=[c],f,e,g,i,h=c.Env.mods;a.each(b,function(b){f=h[b];!f||"css"!==f.getType()?(e=p.unalias(c,b),(g=a.reduce(e,function(a,c){i=h[c];return a&&i&&i.status>=r},!0))?d.push(h[e[0]].exports):d.push(null)):d.push(void 0)});return d},attachModsRecursively:function(a,c){var b,d=a.length;for(b=0;b<d;b++)p.attachModRecursively(a[b],c)},checkModsLoadRecursively:function(a,c,b,d,f){var b=b||[],f=f||{},e,g=1,i=a.length,
h=b.length;for(e=0;e<i;e++)g=g&&p.checkModLoadRecursively(a[e],c,b,d,f),b.length=h;return!!g},checkModLoadRecursively:function(a,b,d,e,g){var h,j=b.Env.mods[a];if(a in g)return g[a];if(!j)return g[a]=!1;h=j.status;return h===i?(e.push(j),g[a]=!1):h>=c?g[a]=!0:h!==f?g[a]=!1:p.checkModsLoadRecursively(j.getNormalizedRequires(),b,d,e,g)?(j.status=c,g[a]=!0):g[a]=!1},attachModRecursively:function(a,c){var b=c.Env.mods[a];b.status>=r||(b.status=r,b.cjs||p.attachModsRecursively(b.getNormalizedRequires(),
c),p.attachMod(c,b))},attachMod:function(c,b){var d=b.factory;if("function"===typeof d){var f;b.cjs&&1<d.length&&(f=a.bind(b.require,b));d=d.apply(b,b.cjs?[c,f,b.exports,b]:p.getModules(c,b.getRequiresWithAlias()));void 0!==d&&(b.exports=d)}else b.exports=d;b.status=g},getModNamesAsArray:function(a){"string"===typeof a&&(a=a.replace(/\s+/g,"").split(","));return a},normalizeModNames:function(a,c,b){return p.unalias(a,p.normalizeModNamesWithAlias(a,c,b))},unalias:function(a,c){for(var b=[].concat(c),
d,f,g,i=0,h,j=a.Env.mods;!i;){i=1;for(d=b.length-1;0<=d;d--)if((f=j[b[d]])&&"alias"in f){i=0;g=f.alias;"string"===typeof g&&(g=[g]);for(h=g.length-1;0<=h;h--)g[h]||g.splice(h,1);b.splice.apply(b,[d,1].concat(e(g)))}}return b},normalizeModNamesWithAlias:function(a,c,b){var d=[],f,g;if(c){f=0;for(g=c.length;f<g;f++)c[f]&&d.push(j(a,e(c[f])))}b&&(d=p.normalDepModuleName(b,d));return d},registerModule:function(c,b,d,g){var b=k(b),e=c.Env.mods,i=e[b];i&&void 0!==i.factory||(p.createModuleInfo(c,b),i=e[b],
a.mix(i,{name:b,status:f,factory:d}),a.mix(i,g))},getHash:function(a){var c=5381,b;for(b=a.length;-1<--b;)c=(c<<5)+c+a.charCodeAt(b);return c+""},getRequiresFromFn:function(a){var c=[];a.toString().replace(v,"").replace(s,function(a,b){c.push(b.match(/^\s*["']([^'"\s]+)["']\s*$/)[1])});return c}});var v=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/mg,s=/[^.'"]\s*require\s*\(([^)]+)\)/g})(KISSY);
(function(a){function e(a,b){return b in a?a[b]:a.runtime.Config[b]}function k(c){a.mix(this,c)}function j(c){this.exports={};this.status=l.Status.INIT;this.factory=this.name=void 0;this.cjs=1;a.mix(this,c);this.waitedCallbacks=[]}function h(a){for(var b=[],d=0;d<a.length;d++)b[d]=a[d];return b}function d(a){"function"===typeof a&&(a={success:a});if(a&&a.success){var b=a.success;a.success=function(){b.apply(this,h(arguments).slice(1))};a.sync=1;return a}}var l=a.Loader,m=a.Path,b=l.Utils;k.prototype=
{constructor:k,reset:function(c){a.mix(this,c)},getTag:function(){return e(this,"tag")},getName:function(){return this.name},getBase:function(){return e(this,"base")},getPrefixUriForCombo:function(){var a=this.name;return this.getBase()+(a&&!this.isIgnorePackageNameInUri()?a+"/":"")},getPackageUri:function(){this.packageUri||(this.packageUri=new a.Uri(this.getPrefixUriForCombo()));return this.packageUri},getBaseUri:function(){return e(this,"baseUri")},isDebug:function(){return e(this,"debug")},isIgnorePackageNameInUri:function(){return e(this,
"ignorePackageNameInUri")},getCharset:function(){return e(this,"charset")},isCombine:function(){return e(this,"combine")},getGroup:function(){return e(this,"group")}};l.Package=k;j.prototype={kissy:1,constructor:j,use:function(a,d){a=b.getModNamesAsArray(a);return KISSY.use(b.normalDepModuleName(this.name,a),d)},resolve:function(a){return this.getFullPathUri().resolve(a)},resolveByName:function(a){return b.normalDepModuleName(this.name,a)},require:function(c){if("string"===typeof c)return a.require(c,
this.name);for(var b=c,g=0;g<b.length;g++)b[g]=this.resolveByName(b[g]);g=h(arguments);g[0]=b;g[1]=d(g[1]);a.use.apply(a,g)},wait:function(a){this.waitedCallbacks.push(a)},notifyAll:function(){for(var a,b=this.waitedCallbacks.length,d=0;d<b;d++){a=this.waitedCallbacks[d];try{a(this)}catch(g){setTimeout(function(){throw g;},0)}}this.waitedCallbacks=[]},getType:function(){var a=this.type;a||(this.type=a=".css"===m.extname(this.name).toLowerCase()?"css":"js");return a},getFullPathUri:function(){var c,
b,d,g;if(!this.fullPathUri){if(this.fullpath)b=new a.Uri(this.fullpath);else{b=this.getPackage();c=b.getBaseUri();g=this.getPath();if(b.isIgnorePackageNameInUri()&&(d=b.name))g=m.relative(d,g);b=c.resolve(g);if(c=this.getTag())c+="."+this.getType(),b.query.set("t",c)}this.fullPathUri=b}return this.fullPathUri},getFullPath:function(){var a;this.fullpath||(a=this.getFullPathUri(),this.fullpath=a.toString());return this.fullpath},getPath:function(){var a;if(!(a=this.path)){a=this.name;var b="."+this.getType(),
d="-min";a=m.join(m.dirname(a),m.basename(a,b));this.getPackage().isDebug()&&(d="");a=this.path=a+d+b}return a},getName:function(){return this.name},getPackage:function(){var b;if(!(b=this.packageInfo)){var d=this.name;b=this.runtime.config("packages");var d=d+"/",e="",i;for(i in b)a.startsWith(d,i+"/")&&i.length>e.length&&(e=i);b=this.packageInfo=b[e]||g}return b},getTag:function(){return this.tag||this.getPackage().getTag()},getCharset:function(){return this.charset||this.getPackage().getCharset()},
getRequiresWithAlias:function(){var a=this.requiresWithAlias,d=this.requires;if(!d||0===d.length)return d||[];a||(this.requiresWithAlias=a=b.normalizeModNamesWithAlias(this.runtime,d,this.name));return a},getRequiredMods:function(){var c=this.runtime;return a.map(this.getNormalizedRequires(),function(a){return b.createModuleInfo(c,a)})},getNormalizedRequires:function(){var a,d=this.normalizedRequiresStatus,g=this.status,e=this.requires;if(!e||0===e.length)return e||[];if((a=this.normalizedRequires)&&
d===g)return a;this.normalizedRequiresStatus=g;return this.normalizedRequires=b.normalizeModNames(this.runtime,e,this.name)}};l.Module=j;var g=new k({name:"",runtime:a})})(KISSY);
(function(a){function e(a){var d=0;if(h.webkit)a.sheet&&(d=1);else if(a.sheet)try{a.sheet.cssRules&&(d=1)}catch(c){"NS_ERROR_DOM_SECURITY_ERR"===c.name&&(d=1)}return d}function k(){for(var b in m){var d=m[b],c=d.node;e(c,b)&&(d.callback&&d.callback.call(c),delete m[b])}l=a.isEmptyObject(m)?0:setTimeout(k,j)}var j=30,h=a.UA,d=a.Loader.Utils,l=0,m={};d.pollCss=function(a,d){var c;c=m[a.href]={};c.node=a;c.callback=d;l||k()};d.isCssLoaded=e})(KISSY);
(function(a){var e=require("fs"),k=require("vm");a.getScript=function(j,h,d){var l;a.isPlainObject(h)&&(d=h.charset,l=h.error,h=h.success);if(a.startsWith(a.Path.extname(j).toLowerCase(),".css"))h&&h();else{var m=(new a.Uri(j)).getPath();try{var b=e.readFileSync(m,d);k.runInThisContext("(function(KISSY,requireNode){"+b+"})",j)(a,require);h&&h()}catch(g){l&&l(g)}}}})(KISSY);
(function(a,e){function k(b){b=b.replace(/\\/g,"/");"/"!==b.charAt(b.length-1)&&(b+="/");l?b=l.resolve(b):(a.startsWith(b,"file:")||(b="file:"+b),b=new a.Uri(b));return b}var j=a.Loader,h=j.Utils,d=a.Env.host.location,l,m,b=a.Config.fns;if(!a.UA.nodejs&&d&&(m=d.href))l=new a.Uri(m);a.Config.loadModsFn=function(b,c){a.getScript(b.fullpath,c)};b.packages=function(b){var c,d=this.Config,h=d.packages=d.packages||{};return b?(a.each(b,function(b,d){c=b.name||d;var f=k(b.base||b.path);b.name=c;b.base=f.toString();
b.baseUri=f;b.runtime=a;delete b.path;h[c]?h[c].reset(b):h[c]=new j.Package(b)}),e):!1===b?(d.packages={},e):h};b.modules=function(b){var c=this;b&&a.each(b,function(b,d){var e=h.createModuleInfo(c,d,b);e.status===j.Status.INIT&&a.mix(e,b)})};b.base=function(a){var b=this.Config;if(!a)return b.base;a=k(a);b.base=a.toString();b.baseUri=a;return e}})(KISSY);
(function(a,e){function k(b,c,d,f,h){var i=c&&c.length,j=[],k=[];a.each(c,function(c){var o,m={timeout:h,success:function(){k.push(c);o&&v&&(g.registerModule(b,o.name,v.factory,v.config),v=e);--i||d(k,j)},error:function(){j.push(c);--i||d(k,j)},charset:f};c.combine||(o=c.mods[0],"css"===o.getType()?o=e:l&&(s=o.name,a.now(),m.attrs={"data-mod-name":o.name}));a.Config.loadModsFn(c,m)})}function j(b,c){a.mix(this,{runtime:b,waitingModules:c})}function h(a,b){if(!a&&"function"===typeof b&&1<b.length){var c=
g.getRequiresFromFn(b);c.length&&(a=a||{},a.requires=c)}else a&&a.requires&&!a.cjs&&(a.cjs=0);return a}function d(a,b){for(var a=a.split(/\//),b=b.split(/\//),c=Math.min(a.length,b.length),d=0;d<c&&a[d]===b[d];d++);return a.slice(0,d).join("/")+"/"}var l=10>a.UA.ieMode,m=a.Loader,b=m.Status,g=m.Utils,c=g.getHash,f=b.LOADING,r=b.LOADED,i=b.READY_TO_ATTACH,p=b.ERROR,u=a.now();j.groupTag=u;var v,s;j.add=function(b,c,d,f,i){if(3===i&&a.isArray(c))var j=c,c=d,d={requires:j,cjs:1};if("function"===typeof b||
1===i)if(d=c,c=b,d=h(d,c),l){for(var b=a.Env.host.document.getElementsByTagName("script"),k,i=b.length-1;0<=i;i--)if(j=b[i],"interactive"===j.readyState){k=j;break}b=k?k.getAttribute("data-mod-name"):s;g.registerModule(f,b,c,d);s=null}else v={factory:c,config:d};else l?s=null:v=e,d=h(d,c),g.registerModule(f,b,c,d)};a.augment(j,{use:function(b){var c=a.Config.timeout,d=this.runtime,b=a.keys(this.calculate(b));g.createModulesInfo(d,b);b=this.getComboUrls(b);a.each(b.css,function(b){k(d,b,function(b,
c){a.each(b,function(b){a.each(b.mods,function(b){g.registerModule(d,b.name,a.noop);b.notifyAll()})});a.each(c,function(b){a.each(b.mods,function(a){a.status=p;a.notifyAll()})})},b.charset,c)});a.each(b.js,function(b){k(d,b,function(){a.each(b,function(b){a.each(b.mods,function(a){a.factory||(a.status=p);a.notifyAll()})})},b.charset,c)})},calculate:function(a,b,c){var d,e,h,j,k=this.waitingModules,l=this.runtime,c=c||{},b=b||{};for(d=0;d<a.length;d++)e=a[d],b[e]||(b[e]=1,h=g.createModuleInfo(l,e),
j=h.status,j>=i||(j!==r&&!k.contains(e)&&(j!==f&&(h.status=f,c[e]=1),h.wait(function(a){k.remove(a.name);k.notifyAll()}),k.add(e)),this.calculate(h.getNormalizedRequires(),b,c)));return c},getComboMods:function(b,c){for(var f={},e,h=this.runtime,i=0,j=b.length,k,l,m,s,p,r,v,G,I;i<j;++i){k=b[i];k=g.createModuleInfo(h,k);m=k.getType();I=k.getFullPath();l=k.getPackage();v=l.name;p=l.getCharset();s=l.getTag();G=l.getGroup();r=l.getPrefixUriForCombo();e=l.getPackageUri();var z=v;(k.canBeCombined=l.isCombine()&&
a.startsWith(I,r))&&G?(z=G+"_"+p+"_"+u,(l=c[z])?l.isSameOriginAs(e)?l.setPath(d(l.getPath(),e.getPath())):(z=v,c[v]=e):c[z]=e.clone()):c[v]=e;e=f[m]=f[m]||{};(m=e[z])?1===m.tags.length&&m.tags[0]===s||m.tags.push(s):(m=e[z]=[],m.charset=p,m.tags=[s]);m.push(k)}return f},getComboUrls:function(a){var b=this.runtime.Config,d=b.comboPrefix,e=b.comboSep,f=b.comboMaxFileNum,b=b.comboMaxUrlLength,g={},a=this.getComboMods(a,g),h={},i;for(i in a){h[i]={};for(var j in a[i]){var k=[],l=[],m=a[i][j],s=m.tags,
p=(s=1<s.length?c(s.join("")):s[0])?"?t="+encodeURIComponent(s)+"."+i:"",s=p.length,r=g[j].toString(),v=r.length,u=r+d,A=h[i][j]=[],r=u.length;A.charset=m.charset;A.mods=[];for(var J=function(){A.push({combine:1,fullpath:u+k.join(e)+p,mods:l})},C=0;C<m.length;C++){var B=m[C];A.mods.push(B);var D=B.getFullPath();if(B.canBeCombined){if(D=D.slice(v).replace(/\?.*$/,""),k.push(D),l.push(B),k.length>f||r+k.join(e).length+s>b)k.pop(),l.pop(),J(),k=[],l=[],C--}else A.push({combine:0,fullpath:D,mods:[B]})}k.length&&
J()}}return h}});m.ComboLoader=j})(KISSY);
(function(a,e){function k(b){a.mix(this,{fn:b,waitMods:{}})}var j=a.Loader,h=a.Env,d=j.Utils,l=a.setImmediate,m=j.ComboLoader;k.prototype={constructor:k,notifyAll:function(){var b=this.fn;b&&a.isEmptyObject(this.waitMods)&&(this.fn=null,b())},add:function(a){this.waitMods[a]=1},remove:function(a){delete this.waitMods[a]},contains:function(a){return this.waitMods[a]}};j.WaitingModules=k;a.mix(a,{add:function(b,d,c){m.add(b,d,c,a,arguments.length)},use:function(b,g){function c(){++u;var b=[];a.now();
d.checkModsLoadRecursively(f,a,e,b)?(d.attachModsRecursively(f,a),g&&(j?v():l(v))):b.length?i&&(j?i.apply(a,b):l(function(){i.apply(a,b)})):(s.fn=c,h.use(f))}var f,h,i,j,u=0,v,s=new k(c);a.isPlainObject(g)&&(j=g.sync,i=g.error,g=g.success);v=function(){g.apply(a,d.getModules(a,b))};b=d.getModNamesAsArray(b);b=d.normalizeModNamesWithAlias(a,b);f=d.unalias(a,b);h=new m(a,s);j?s.notifyAll():l(function(){s.notifyAll()});return a},require:function(b,e){if(b){var c=d.unalias(a,d.normalizeModNamesWithAlias(a,
[b],e));d.attachModsRecursively(c,a);return d.getModules(a,c)[1]}}});h.mods={}})(KISSY);
(function(a){function e(c){var e=c.src||"";if(!e.match(g))return 0;var c=(c=c.getAttribute("data-config"))?(new Function("return "+c))():{},j=c.comboPrefix||l,i=c.comboSep||m,k,u=e.indexOf(j);-1===u?k=e.replace(b,"$1"):(k=e.substring(0,u),"/"!==k.charAt(k.length-1)&&(k+="/"),j=e.substring(u+j.length).split(i),a.each(j,function(a){if(a.match(g))return k+=a.replace(b,"$1"),!1}));"tag"in c||(j=e.lastIndexOf("?t="),-1!==j&&(e=e.substring(j+1),c.tag=h.getHash(d+e)));c.base=c.base||k;return c}function k(){var a=
j.getElementsByTagName("script"),b,d;for(b=a.length-1;0<=b;b--)if(d=e(a[b]))return d;return null}var j=a.Env.host&&a.Env.host.document,h=a.Loader.Utils,d="20140828131714",l="??",m=",",b=/^(.*)(seed|kissy)(?:-min)?\.js[^/]*/i,g=/(seed|kissy)(?:-min)?\.js/i;a.config({comboPrefix:l,comboSep:m,charset:"GB2312",lang:"zh-cn"});a.UA.nodejs?a.config({charset:"GB2312",base:__dirname.replace(/\\/g,"/").replace(/\/$/,"")+"/"}):j&&j.getElementsByTagName&&a.config(a.mix({comboMaxUrlLength:2E3,comboMaxFileNum:40},k()))})(KISSY);
KISSY.add("i18n",{alias:function(a,e){return e+"/i18n/"+a.Config.lang}});
(function(a,e){function k(){if(!b){d&&!h.nodejs&&u(j,i,k);b=1;for(var c=0;c<g.length;c++)try{g[c](a)}catch(e){setTimeout(function(){throw e;},0)}}}var j=a.Env.host,h=a.UA,d=j.document,l=d&&d.documentElement,m=j.location,b=0,g=[],c=/^#?([\w-]+)$/,f=/\S/,r=!(!d||!d.addEventListener),i="load",p=r?function(a,b,c){a.addEventListener(b,c,!1)}:function(a,b,c){a.attachEvent("on"+b,c)},u=r?function(a,b,c){a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent("on"+b,c)};a.mix(a,{isWindow:function(a){return null!=
a&&a==a.window},parseXML:function(a){if(a.documentElement)return a;var b;try{j.DOMParser?b=(new DOMParser).parseFromString(a,"text/xml"):(b=new ActiveXObject("Microsoft.XMLDOM"),b.async=!1,b.loadXML(a))}catch(c){b=e}!b||!b.documentElement||b.getElementsByTagName("parsererror");return b},globalEval:function(a){a&&f.test(a)&&(j.execScript?j.execScript(a):j.eval.call(j,a))},ready:function(c){if(b)try{c(a)}catch(d){setTimeout(function(){throw d;},0)}else g.push(c);return this},available:function(b,e){var b=
(b+"").match(c)[1],f=1,g=a.later(function(){if(500<++f)g.cancel();else{var a=d.getElementById(b);a&&(e(a),g.cancel())}},40,!0)}});if(m&&-1!==(m.search||"").indexOf("ks-debug"))a.Config.debug=!0;(function(){if(!d||"complete"===d.readyState)k();else if(p(j,i,k),r){var a=function(){u(d,"DOMContentLoaded",a);k()};p(d,"DOMContentLoaded",a)}else{var b=function(){"complete"===d.readyState&&(u(d,"readystatechange",b),k())};p(d,"readystatechange",b);var c,e=l&&l.doScroll;try{c=null===j.frameElement}catch(f){c=
!1}if(e&&c){var g=function(){try{e("left"),k()}catch(a){setTimeout(g,40)}};g()}}})();if(h.ie)try{d.execCommand("BackgroundImageCache",!1,!0)}catch(v){}})(KISSY,void 0);
(function(a){a.config({modules:{core:{alias:"dom,event,io,anim,base,node,json,ua,cookie".split(",")},ajax:{alias:"io"},"rich-base":{alias:"base"}}});if("undefined"!==typeof location){var e=a.startsWith(location.href,"https")?"https://s.tbcdn.cn/s/kissy/":"http://a.tbcdn.cn/s/kissy/";a.config({packages:{gallery:{base:e},kg:{base:"//g.alicdn.com/"},mobile:{base:e}}})}})(KISSY);
(function(a,e,k){a({"anim/transition?":{alias:KISSY.Features.isTransitionSupported()?"anim/transition":""}});a({anim:{requires:["anim/base","anim/timer","anim/transition?"]}});a({"anim/base":{requires:["dom","promise"]}});a({"anim/timer":{requires:["dom","anim/base"]}});a({"anim/transition":{requires:["dom","anim/base"]}});a({attribute:{requires:["event/custom"]}});a({base:{requires:["attribute"]}});a({button:{requires:["node","component/control"]}});a({color:{requires:["attribute"]}});a({combobox:{requires:["node",
"component/control","menu","attribute","io"]}});a({"component/container":{requires:["component/control","component/manager"]}});a({"component/control":{requires:["node","base","promise","component/manager","xtemplate/runtime"]}});a({"component/extension/align":{requires:["node"]}});a({"component/extension/content-render":{requires:["component/extension/content-xtpl"]}});a({"component/extension/delegate-children":{requires:["node","component/manager"]}});a({"component/plugin/drag":{requires:["dd"]}});
a({"component/plugin/resize":{requires:["resizable"]}});a({"date/format":{requires:["date/gregorian","i18n!date"]}});a({"date/gregorian":{requires:["i18n!date"]}});a({"date/picker":{requires:"node,date/gregorian,i18n!date/picker,component/control,date/format,date/picker-xtpl".split(",")}});a({"date/popup-picker":{requires:["date/picker-xtpl","date/picker","component/extension/shim","component/extension/align"]}});a({dd:{requires:["node","base"]}});a({"dd/plugin/constrain":{requires:["node","base"]}});
a({"dd/plugin/proxy":{requires:["node","dd","base"]}});a({"dd/plugin/scroll":{requires:["node","dd","base"]}});a({"dom/basic":{alias:["dom/base",e.isIELessThan(9)?"dom/ie":"",e.isClassListSupported()?"":"dom/class-list"]},dom:{alias:["dom/basic",!e.isQuerySelectorSupported()?"dom/selector":""]}});a({"dom/base":{requires:["ua"]}});a({"dom/class-list":{requires:["dom/base"]}});a({"dom/ie":{requires:["dom/base"]}});a({"dom/selector":{requires:["dom/basic"]}});a({editor:{requires:["node","html-parser",
"component/control","ua"]}});a({event:{requires:["event/dom","event/custom"]}});a({"event/custom":{requires:["event/base"]}});a({"event/dom":{alias:["event/dom/base",e.isTouchGestureSupported()?"event/dom/touch":"",e.isDeviceMotionSupported()?"event/dom/shake":"",e.isHashChangeSupported()?"":"event/dom/hashchange",e.isIELessThan(9)?"event/dom/ie":"",k.ie?"":"event/dom/focusin"]}});a({"event/dom/base":{requires:["event/base","dom"]}});a({"event/dom/focusin":{requires:["event/dom/base"]}});a({"event/dom/hashchange":{requires:["event/dom/base",
"dom"]}});a({"event/dom/ie":{requires:["event/dom/base","dom"]}});a({"event/dom/shake":{requires:["event/dom/base"]}});a({"event/dom/touch":{requires:["event/dom/base","dom"]}});a({"filter-menu":{requires:["menu","component/extension/content-xtpl","component/extension/content-render"]}});a({io:{requires:["dom","event/custom","promise","event/dom"]}});a({kison:{requires:["base"]}});a({menu:{requires:"node,component/container,component/extension/delegate-children,component/control,component/extension/content-render,component/extension/content-xtpl,component/extension/align,component/extension/shim".split(",")}});
a({menubutton:{requires:["node","button","component/extension/content-xtpl","component/extension/content-render","menu"]}});a({mvc:{requires:["io","json","attribute","node"]}});a({node:{requires:["dom","event/dom","anim"]}});a({overlay:{requires:"component/container,component/extension/shim,component/extension/align,node,component/extension/content-xtpl,component/extension/content-render".split(",")}});a({resizable:{requires:["node","base","dd"]}});a({"resizable/plugin/proxy":{requires:["node","base"]}});
a({"scroll-view":{alias:e.isTouchGestureSupported()?"scroll-view/drag":"scroll-view/base"}});a({"scroll-view/base":{requires:["node","anim","component/container","component/extension/content-render"]}});a({"scroll-view/drag":{requires:["scroll-view/base","node","anim"]}});a({"scroll-view/plugin/pull-to-refresh":{requires:["base"]}});a({"scroll-view/plugin/scrollbar":{requires:["base","node","component/control"]}});a({separator:{requires:["component/control"]}});a({"split-button":{requires:["component/container",
"button","menubutton"]}});a({stylesheet:{requires:["dom"]}});a({swf:{requires:["dom","json","attribute"]}});a({tabs:{requires:["component/container","toolbar","button"]}});a({toolbar:{requires:["component/container","component/extension/delegate-children","node"]}});a({tree:{requires:["node","component/container","component/extension/content-xtpl","component/extension/content-render","component/extension/delegate-children"]}});a({xtemplate:{requires:["xtemplate/runtime","xtemplate/compiler"]}});a({"xtemplate/compiler":{requires:["xtemplate/runtime"]}});
a({"xtemplate/runtime":{requires:["path"]}})})(function(a){KISSY.config("modules",a)},KISSY.Features,KISSY.UA);
(function(a){a.add("ua",function(){return a.UA});a.add("uri",function(){return a.Uri});a.add("path",function(){return a.Path});var e=a.UA,k=a.Env.host,j=(e.nodejs&&"object"===typeof global?global:k).JSON;9>e.ieMode&&(j=null);if(j)a.add("json",function(){return a.JSON=j}),a.parseJson=function(a){return j.parse(a)};else{var h=/^[\],:{}\s]*$/,d=/(?:^|:|,)(?:\s*\[)+/g,l=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,m=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g;a.parseJson=function(b){return null===
b?b:"string"===typeof b&&(b=a.trim(b))&&h.test(b.replace(l,"@").replace(m,"]").replace(d,""))?(new Function("return "+b))():a.error("Invalid Json: "+b)}}a.UA.nodejs&&(a.KISSY=a,module.exports=a)})(KISSY);
